
workdir="/home/ceph-deploy.d/"
cd $workdir

sh stop-all-service.sh

mon_host=`cat mon.conf`

echo "mon_host: $mon_host"
echo "ceph-deploy new $mon_host"
ceph-deploy new $mon_host


for host in $mon_host
do
   echo "ceph-deploy --overwrite-conf mon create $host"
   ceph-deploy mon create $host
done

ceph-deploy gatherkeys $host

